import time

from app.model.Company import Company


def test_str():
    print('日期字符串:', time.strftime('%Y-%m-%d'))

    print("普通字符串拼接:", "test {} ", 'abc')

    testList = ['a', 'b']
    print("列表打印：", str(testList))

    print('字符串格式化：{}1{}2'.format('a', 'b'))

    print('对象转字符串：{}'.format(str(Company())))

    test_abc = '123'
    print("测试字符串%s" % test_abc)

    test_aaa = '''
        
    '''


# 方法必须先声明后使用
if __name__ == '__main__':
    test_str()
